import {onMounted, ref} from "vue";
import {gerOderType} from "@/api/Oder/Oder.ts";
export const  useOrder=(type:string|number)=>{
    const orderList=ref([])
    onMounted(async  ()=>{
       const res=await gerOderType({type:type})
        if(res.status==200){
            orderList.value=res.data
        }
    })
    return {
        orderList
    }
}